"nodejs";

const cv = require("@autojs/opencv");
const { delay } = require("lang");
const { showToast } = require("toast");
const rows = 100; // height
const cols = 100; // width
const emptyMat = new cv.Mat(rows, cols, cv.CV_8UC3);
// fill the Mat with default value
const whiteMat = new cv.Mat(rows, cols, cv.CV_8UC1, 255);
const blueMat = new cv.Mat(rows, cols, cv.CV_8UC3, [255, 0, 0]);
showToast(emptyMat);
delay(1000)
showToast(whiteMat)
delay(1000)
showToast(blueMat)